<?php
App::uses('AppModel', 'Model');
class UserCategory extends AppModel {
	var $name = 'UserCategory';
	var $actsAs = array('Containable');
	//The Associations below have been created with all possible keys, 
	//those that are not needed can be removed

	var $belongsTo = array(
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
			'conditions' => array('role' => ROLE_EDITOR),
			'fields' => '',
			'order' => ''
		),
		'Category' => array(
			'className' => 'Category',
			'foreignKey' => 'category_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
